package com.zzy.edu.client;

import com.zzy.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @Author KAZU
 * @Date 2023/1/16 18:34
 * @Version 1.0
 */
@SuppressWarnings({"all"})
@FeignClient(value = "service-vod", fallback = VodFileDegradeFeignClient.class)
//@FeignClient(value = "service-vod")
@Component
public interface VodClient {
	
	/**
	 * 定义方法路径
	 * */
	@DeleteMapping("/eduvod/video/removeAlyVideo/{id}")
	public R removeAlyVideo(@PathVariable("id") String id);
	
	/**
	 * 删除多个阿里云视频的方法
	 * */
	@DeleteMapping("/eduvod/video/delete-batch")
	public R deleteBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
